package com.ruoyi.camera.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 摄像头识别对象 ai_camera
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
public class AiCamera extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 图片位置 */
    @Excel(name = "图片位置")
    private String photoLocation;

    /** 图片 */
    @Excel(name = "图片")
    private String photo;

    /** 数量 */
    @Excel(name = "数量")
    private Long amount;

    /** 识别率 */
    @Excel(name = "识别率")
    private Long rate;

    /** 保存时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保存时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saveDate;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String operator;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setPhotoLocation(String photoLocation) 
    {
        this.photoLocation = photoLocation;
    }

    public String getPhotoLocation() 
    {
        return photoLocation;
    }

    public void setPhoto(String photo)
    {
        this.photo = photo;
    }
    public String getPhoto()
    {
        return photo;
    }


    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setRate(Long rate) 
    {
        this.rate = rate;
    }

    public Long getRate() 
    {
        return rate;
    }
    public void setSaveDate(Date saveDate) 
    {
        this.saveDate = saveDate;
    }

    public Date getSaveDate() 
    {
        return saveDate;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialName", getMaterialName())
            .append("photoLocation", getPhotoLocation())
            .append("amount", getAmount())
            .append("rate", getRate())
            .append("saveDate", getSaveDate())
            .append("operator", getOperator())
            .append("photo",getPhoto())
            .toString();
    }
}
